from django.shortcuts import render

# Create your views here.

def tpl(request):
    name = "韩信"
    roles = ['管理员', 'CEO', '保安']
    user_info = {"name":"李白", "salary":100000, "roles":"刺客"}
    data_list = [
        {"name": "李白", "salary": 100000, "roles": "刺客"},
        {"name": "马可波罗", "salary": 10000, "roles": "射手"},
        {"name": "百里守约", "salary": 100000, "roles": "射手"}
    ]
    return render(request,'tpl.html', {"n1":name, "n2":roles, "n3":user_info,"n4":data_list})
